:root {
    --primary-color: #01C2F9;
    --secondary-color: #12e78c;
    --accent-color: #ef5350;
    --dark-bg: rgba(0, 10, 30, 0.7);
    --card-bg: rgba(7, 28, 61, 0.8);
    --text-color: #ffffff;
    --border-glow: 0 0 10px rgba(1, 194, 249, 0.5);
    --header-height: 6.6vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, #app {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text-color);
    background-color: #000;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

#dash_full * {
    color: white;
}

#dash_full {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('../img/bg.png') 0 0 / 100vw 100vh no-repeat;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: -1;
}

/* 添加背景渐变叠加效果 */
#container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 10, 30, 0.3) 0%, rgba(0, 10, 30, 0.7) 100%);
    z-index: 0;
}

/* 头部样式 */
#header {
    position: relative;
    height: var(--header-height);
    overflow: hidden;
    margin-top: 1.5vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2vw;
    z-index: 10;
}

.logo-div {
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.logo_img {
    height: 3.6vh;
    margin-right: 1vw;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.logo_title {
    font-size: 2.2vh;
    color: rgb(72, 193, 1);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(72, 193, 1, 0.5);
    margin: 0;
}

.header-title {
    text-align: center;
    font-size: 3.8vh;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(to right, #01C2F9, #12e78c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(1, 194, 249, 0.7);
    animation: pulse 2s infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 0;
}

.header-title:hover {
    transform: scale(1.05);
}

.header-time {
    font-size: 2vh;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: fadeIn 1s ease-in-out;
    position: relative;
    margin: 0;
}

/* 主体内容区域 */
#flexCon {
    height: 50vh;
    display: flex;
    z-index: 10;
    padding: 0 2vw;
    margin-top: 1vh;
    gap: 1vw;
}

.flex-left, .flex-right {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.flex-middle {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.flex-cell {
    flex: 1;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 3px 0;
}

.flex-cell:hover {
    transform: translateY(-5px);
    box-shadow: var(--border-glow);
}

.flex-cell-middle {
    flex: 1;
}

.flex-cell-1 {
    flex: 1;
}

/* 卡片样式 */
.chart-wrapper {
    position: relative;
    height: 100%;
    background: rgba(7, 28, 61, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(1, 194, 249, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.chart-title {
    text-align: center;
    padding: 1.5vh;
    margin: 0;
    font-size: 2vh;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-div {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 45px 0 20px 0;
    padding: 10px;
}

/* 中间区域样式 */
.middel-div {
    background: rgba(7, 28, 61, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(1, 194, 249, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 10px 0;
    overflow: hidden;
}

/* 指标卡片样式 */
.h_idv {
    height: 13vh;
    width: 90%;
    background: linear-gradient(135deg, rgba(1, 194, 249, 0.2), rgba(18, 231, 140, 0.2));
    border-radius: 10px;
    margin: 0 auto;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(1, 194, 249, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.h_idv:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(1, 194, 249, 0.5);
}

.h_idv_v {
    font-size: 3vh;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(1, 194, 249, 0.7);
    margin-bottom: 1vh;
    padding-top: 0;
}

.h_idv_t {
    font-size: 1.6vh;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* 底部区域样式 */
.footer {
    position: relative;
    height: 33.5vh;
    background: rgba(7, 28, 61, 0.8);
    margin: 2vh 2vw;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(1, 194, 249, 0.3);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* 表格样式 */
.waring-table {
    width: 98%;
    font-size: 1.5vh;
    margin: 1vh auto;
    text-align: center;
    border-collapse: collapse;
    color: var(--text-color);
}

.waring-table thead {
    line-height: 3.5vh;
    background: rgba(1, 194, 249, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.waring-table th {
    padding: 1vh;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.waring-table td {
    padding: 1vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.waring-table tr:hover {
    background: rgba(1, 194, 249, 0.1);
}

/* 控制按钮区域 */
.ctl_div {
    height: 6vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1vh;
}

.but {
    height: 4.5vh;
    width: 20vw;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.8vh;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(1, 194, 249, 0.3);
    transition: all 0.3s ease;
    outline: none;
    margin-left: 0;
    margin-top: 0;
}

.but:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 194, 249, 0.5);
}

.but:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(1, 194, 249, 0.3);
}

/* 加载动画 */
.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(7, 28, 61, 0.5);
    z-index: 5;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    from { text-shadow: 0 0 5px rgba(1, 194, 249, 0.5); }
    to { text-shadow: 0 0 20px rgba(1, 194, 249, 0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .header-title {
        font-size: 3vh;
    }
    
    .logo_title {
        font-size: 1.8vh;
    }
    
    .but {
        width: 30vw;
    }
}

/* 元素淡入动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* 图表区域美化 */
#ech_1, #ech_2, #ech_4, #ech_5, #ech_6 {
    animation: fadeIn 1s ease-in-out;
}

/* 行交替颜色 */
.waring-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* 告警等级样式 */
.alarm-urgent {
    color: #ef5350;
    font-weight: 500;
}

.alarm-serious {
    color: #ff9800;
    font-weight: 500;
}

.alarm-normal {
    color: #8bc34a;
}

/* 全屏模式优化 */
:fullscreen #dash_full {
    background-color: #000;
}